package com.hujiang.basic.search.common.utils;

import com.hujiang.basic.search.common.exception.NotEqualException;

import java.util.Objects;

public abstract class Assert {

    public static void equalForObject(Object o1, Object o2, String failureMsg) {
        if (!Objects.equals(o1, o2)) {
            throw new NotEqualException(failureMsg);
        }
    }
}
